const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");

module.exports = merge(common, {
  mode: "development",
  devtool: "inline-source-map",
  devServer: {
    // 简单的 web server
    contentBase: "./dist", // 告知 dev server，从什么位置查找文件
    hot: true, // 实时重载功能
  },
});
